package cn.edu.qzuie.artist.module.td.controller.app.work.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.edu.qzuie.artist.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.edu.qzuie.artist.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "用户 APP - 作品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppWorkPageReqVO extends PageParam {

    @Schema(description = "作品名称", example = "芋艿")
    private String workName;

    @Schema(description = "介绍", example = "随便")
    private String description;

    @Schema(description = "上传文件地址")
    private String filepath;

    @Schema(description = "文件大小")
    private String fileSize;

    @Schema(description = "如果上传的是图片，web端使用压缩的缩略图")
    private String imgSrc;

    @Schema(description = "作品类型：图片，视频，文件", example = "2")
    private Integer workType;

    @Schema(description = "是否发布")
    private Boolean published;

    @Schema(description = "分类编号", example = "13")
    private Long catagoryId;

    @Schema(description = "PC-缩略图")
    private String pcThumnail;

    @Schema(description = "M-缩略图")
    private String mobileThumnail;

    @Schema(description = "用户编号", example = "15002")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}